import request from '@/utils/request'

/**
 * login
 */

export const loginApi = data => {
    return request({
        url: '/user/login',
        method: 'POST',
        data
    })
}

// 获取用户信息
export const getUserInfoApi = () => {
    return request({
        url: '/user/profile'
    })
}